package JLB_Chapter_04;
// GetDay
public class code_04_02 {
    public static void main(String[] args) {
        // 创建并初始化一维数组
        int[] day = new int[] { 31,28,31,30,31,30,31,31,30,31,30,31 };
        for (int i = 0;i < 12; i++ ) {
            System.out.println((i + 1) + "月有" + day[i] + "天");
        }
    }
}
